import { createRouter, createWebHistory  } from 'vue-router';
//createWebHashHistory hash模式 带#号
//createWebHistory history模式 不带#号
import Friend from '../Friend.vue';
import Find from '../Find.vue';
import My from '../My.vue';

const routes = [
  {
    path: '/friend',
    name: 'Friend',
    component: Friend
  },
  {
    path: '/find',
    name: 'Find',
    component: Find
  },
  {
    path: '/my',
    name: 'My',
    component: My
  },
]

const router = createRouter({
  history: createWebHistory (),
  routes,
  mode: 'history',
  linkActiveClass: 'active',
  linkExactActiveClass: 'active'
});

export default router;